import { makeAutoObservable } from 'mobx'

export class AppStore {
    constructor() {
        makeAutoObservable(this, {
            increase: true
        })
    }
    count: number = 0
    increase() {
        this.count++
    }
    reset() {
        this.count = 0
    }
    get double() {
        return this.count * 2
    }
}